@popupPrefix: c7ncd-host-config-resource;

.@{popupPrefix} {
  border-left: 1px solid #c2d1e1;
  padding: 0.16rem;
  flex-grow: 1;
  overflow-y: scroll;
  overflow-x: hidden;

  &-title {
    font-size: 0.16rem;
    line-height: 0.24rem;
    font-weight: 500;
  }

  &-usage {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.16rem 0 0 0.24rem;
    background: #f5f6fa;
    border-radius: 4px;
    margin: 0.16rem 0 0.24rem;

    &-item {
      display: flex;
      width: 45%;
      margin-bottom: 0.16rem;
    }

    &-label {
      color: var(--text-color3);
      flex-shrink: 0;
    }
  }

  &-port {
    display: flex;
    align-items: center;
  }

  &-user {
    display: flex;
    align-items: center;
  }
  &-username {
    display: flex;
    align-items: center;
    overflow-x: hidden;
    text-overflow: ellipsis;

    > span {
      flex-shrink: 0;
    }

    > div {
      overflow-x: hidden;
      text-overflow: ellipsis;
    }
  }

  &-creator {
    background: #5365ea;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 0.2rem;
    transform: scale(0.83);
    padding: 0 0.04rem;
    display: inline-block;
    margin-right: 0.06rem;
  }
  &-configuration-creator {
    background: #f0f5ff;
    border: 1px solid #adc6ff;
    color: #5365ea;
  }
  &-host-group-label {
    background: #5365ea;
    color: #fff;
  }

  &-configuration-creator,
  &-host-group-label {
    font-size: 10px;
    border-radius: 4px;
    font-weight: 400;
    line-height: 0.2rem;
    transform: scale(0.83);
    padding: 0 0.04rem;
    display: inline-block;
    margin-right: 0.06rem;
  }
}
